package net.mysoft.budgetsoft.system.interceptor;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

/**
 * 异常拦截器
 * @author kangrui
 *
 */
public class ExceptionInterceptor extends AbstractInterceptor {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6369883681146441526L;

	@Override
	public String intercept(ActionInvocation ai) throws Exception {
		try {
			ai.invoke();
		} catch (Exception e) {
			e.printStackTrace();
			throw new RuntimeException(e);
		}
		return null;
	}

}
